﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace huqiang.Core.HGUI
{
    public class TextLineLayout
    {
        float lineWith;
        float fillWith;
        public void ResetWith(float w)
        {
            lineWith = w;
            fillWith = 0;
        }
        public bool AddChar(ref CharacterInfoEx character)
        {
            int gw = character.info.glyphWidth;
            if (fillWith + gw > lineWith)
                return false;
            fillWith += gw;
            return true;
        }
        public void ApplyX()
        {

        }
    }
    public class TextRowLayout
    { 
         public void ApplyY()
        {

        }
    }
}
